﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Microsoft.OpenTurf.Silverlight"
    x:Class="Microsoft.OpenTurf.Silverlight.MainView">

    <UserControl.DataContext>
        <Binding Mode="OneWay" Path="Main" Source="{StaticResource Locator}"/>
    </UserControl.DataContext>
    
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="{Binding TitleHeight}" />   
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="{Binding MenuWidth}" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <StackPanel Orientation="Vertical"  Grid.Column="0" Grid.Row="1">
            <local:SearchView />
            <ContentPresenter x:Name="MenuContainer" Content="{Binding MenuControl}" />
        </StackPanel>
        <ContentPresenter x:Name="MapContainer" Grid.Column="1" Grid.Row="1" Content="{Binding MapControl}" />
    </Grid>
</UserControl>